package com.xinke.module.system.model.vo.mail;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;
import com.alibaba.excel.annotation.*;

@Schema(description = "管理后台 - 邮箱账号 Response VO")
@Data
@ExcelIgnoreUnannotated
public class MailAccountRespVO {

    @Schema(description = "主键id", requiredMode = Schema.RequiredMode.REQUIRED, example = "22685")
    @ExcelProperty("主键id")
    private Long mailAcctId;

    @Schema(description = "邮箱", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("邮箱")
    private String mailAddress;

    @Schema(description = "用户名", requiredMode = Schema.RequiredMode.REQUIRED, example = "张三")
    @ExcelProperty("用户名")
    private String userName;

    @Schema(description = "密码", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("密码")
    private String password;

    @Schema(description = "SMTP 服务器域名", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("SMTP 服务器域名")
    private String smtpHost;

    @Schema(description = "SMTP 服务器端口", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("SMTP 服务器端口")
    private Integer smtpPort;

    @Schema(description = "是否开启 SSL", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("是否开启 SSL")
    private Integer sslEnable;

    @Schema(description = "是否开启 STARTTLS", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("是否开启 STARTTLS")
    private Integer starttlsEnable;

    @Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("创建时间")
    private LocalDateTime createTime;

}